package com.yulinlin.admin.modules.sys.domain.join;

import com.yulinlin.common.domain.vo.SuperVo;
import com.yulinlin.data.core.anno.JoinField;
import com.yulinlin.data.core.anno.JoinTable;
import com.yulinlin.data.core.anno.JoinWhere;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;


@Data
@ApiModel("用户元素关联 ")
@JoinTable(left = "sys_element a",right = "sys_element_rel b",on = "a.id = b.sysElementId")
public class SysElementRelJoin extends SuperVo {

    @NotEmpty(message = "必填")
    @ApiModelProperty("标题")
    @JoinWhere
    @JoinField(columnName = "b.id")
    private String id;

    @NotEmpty(message = "必填")
    @ApiModelProperty("是否启用")
    @JoinWhere
    @JoinField(columnName = "b.open")
    private Boolean open;


    @NotEmpty(message = "必填")
    @ApiModelProperty("标题")
    @JoinWhere
    @JoinField(columnName = "b.sysUserId")
    private String sysUserId;

    @NotEmpty(message = "必填")
    @ApiModelProperty("标题")
    @JoinWhere
    @JoinField(columnName = "a.title")
    private String title;


    @NotEmpty(message = "必填")
    @ApiModelProperty("编码")
    @JoinWhere
    @JoinField(columnName = "a.code")
    private String code;


    @NotEmpty(message = "必填")
    @ApiModelProperty("元素类型")
    @JoinWhere
    @JoinField(columnName = "a.elementType")
    private String elementType;








}
